{extend name='admin@main'}

{block name="button"}


{/block}

{block name="content"}
<div class="think-box-shadow">
    
<fieldset class="margin-bottom-10">
    <legend>温馨提示！</legend>
    <div class="layui-code border-0 margin-top-0" style="padding: 5px;
line-height: 15px;">
        <p class="color-desc margin-top-5">每开通一个城市代理商自动开通该代理商所在城市！</p>
        
    </div>
</fieldset>
    <table class="layui-table margin-top-10" lay-skin="line">
        <thead>
            <tr>
                <th >开通城市</th>
                <th>开通地区</th>
                <th>代理商名称</th>
                <th>开通时间</th>
                <th>状态</th>
               
            </tr>
        </thead>
        <tbody>
       {foreach $list as $key=>$vo}
        <tr>
            <td >{$vo.province}</td>
            <td>{$vo.city}</td>
            <td>{$vo.username}</td>
            <td>{$vo.create_at}</td>
            <td>
                {eq name="vo.status" value="1"}
                    <span class="layui-btn layui-btn-xs">开通中</span>
                {else/}
                    <span class="layui-btn layui-btn-danger layui-btn-xs"> 禁用</span>
                {/eq}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}
